package com.cloudkinto.service.product.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhujiale
 * @description
 * @date 2022/11/16
 */
@Data
public class BarCodePrintReq {
    @NotNull(message = "barcode.no.null")
    @ApiModelProperty("条形码url和数量list")
    private List<CodeAndNumReq> codeAndNumList;

    @NotNull(message = "operate.type.no.null")
    @ApiModelProperty("操作类型 具体对应类型参考操作类型下拉框")
    private Integer operateType;

    private Integer height;
    private Integer width;

    @NoArgsConstructor
    @Data
    public static class CodeAndNumReq {
        @NotNull(message = "print.count.no.null")
        @ApiModelProperty("打印数量")
        private Integer number;

        @NotNull(message = "barcode.address.no.null")
        @ApiModelProperty("条形码地址id")
        private Long barCodeId;
    }
}
